﻿
using System;
using System.Threading;

namespace Demo.Test.StackQueue
{
    /// <summary>
    /// 
    /// </summary>
    public class Node<T> where T : class
    {
        public T Data { get; set; }

        public Node<T> Pre { get; set; }

        public Node<T> Next { get; set; }

        public Node(T data)
        {
            this.Data = data;
            this.Pre = null;
            this.Next = null;
        }
    }

}
